<HTML>
<HEAD>
    <meta charset="UTF-8">
    <title>TransitionBuilder.addListener - transitionx</title>
    <link href="../../../style.css" rel="stylesheet">
</HEAD>
<BODY>
<a href="../../index.html">transitionx</a>&nbsp;/&nbsp;<a href="../index.html">in.arunkumarsampath.transitionx.transition</a>&nbsp;/&nbsp;<a
        href="index.html">TransitionBuilder</a>&nbsp;/&nbsp;<a href="./add-listener.html">addListener</a><br/>
<br/>
<h1>addListener</h1>
<a name="in.arunkumarsampath.transitionx.transition.TransitionBuilder$addListener(android.support.transition.Transition, kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)))"></a>
<code><span class="keyword">fun </span><a
        href="https://developer.android.com/reference/android/support/transition/Transition.html"><span
        class="identifier">Transition</span></a><span class="symbol">.</span><span
        class="identifier">addListener</span><span class="symbol">(</span><span class="identifier"
                                                                                id="in.arunkumarsampath.transitionx.transition.TransitionBuilder$addListener(android.support.transition.Transition, kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)))/onEnd">onEnd</span><span
        class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">transition</span><span
        class="symbol">:</span>&nbsp;<a
        href="https://developer.android.com/reference/android/support/transition/Transition.html"><span
        class="identifier">Transition</span></a><span class="symbol">)</span>&nbsp;<span
        class="symbol">-&gt;</span>&nbsp;<a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;null<span
        class="symbol">, </span><span class="identifier"
                                      id="in.arunkumarsampath.transitionx.transition.TransitionBuilder$addListener(android.support.transition.Transition, kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)))/onStart">onStart</span><span
        class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">transition</span><span
        class="symbol">:</span>&nbsp;<a
        href="https://developer.android.com/reference/android/support/transition/Transition.html"><span
        class="identifier">Transition</span></a><span class="symbol">)</span>&nbsp;<span
        class="symbol">-&gt;</span>&nbsp;<a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;null<span
        class="symbol">, </span><span class="identifier"
                                      id="in.arunkumarsampath.transitionx.transition.TransitionBuilder$addListener(android.support.transition.Transition, kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)))/onCancel">onCancel</span><span
        class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">transition</span><span
        class="symbol">:</span>&nbsp;<a
        href="https://developer.android.com/reference/android/support/transition/Transition.html"><span
        class="identifier">Transition</span></a><span class="symbol">)</span>&nbsp;<span
        class="symbol">-&gt;</span>&nbsp;<a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;null<span
        class="symbol">, </span><span class="identifier"
                                      id="in.arunkumarsampath.transitionx.transition.TransitionBuilder$addListener(android.support.transition.Transition, kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)))/onResume">onResume</span><span
        class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">transition</span><span
        class="symbol">:</span>&nbsp;<a
        href="https://developer.android.com/reference/android/support/transition/Transition.html"><span
        class="identifier">Transition</span></a><span class="symbol">)</span>&nbsp;<span
        class="symbol">-&gt;</span>&nbsp;<a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;null<span
        class="symbol">, </span><span class="identifier"
                                      id="in.arunkumarsampath.transitionx.transition.TransitionBuilder$addListener(android.support.transition.Transition, kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)), kotlin.Function1((android.support.transition.Transition, kotlin.Unit)))/onPause">onPause</span><span
        class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">transition</span><span
        class="symbol">:</span>&nbsp;<a
        href="https://developer.android.com/reference/android/support/transition/Transition.html"><span
        class="identifier">Transition</span></a><span class="symbol">)</span>&nbsp;<span
        class="symbol">-&gt;</span>&nbsp;<a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;null<span
        class="symbol">)</span><span class="symbol">: </span><a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
        class="identifier">Unit</span></a></code>
<p>Add actions at different stages of <a
        href="https://developer.android.com/reference/android/support/transition/Transition.html">Transition</a>.
    Repeated blocks does not override previously
    added block but instead run one after another.</p>
<p><strong>See Also</strong><br/>
<p>
    <a href="https://developer.android.com/reference/android/support/transition/Transition.html#addListener(android.support.transition.Transition.TransitionListener)">Transition.addListener</a>
</p>
</p>
</BODY>
</HTML>
